<?php
/**
* config
*/
date_default_timezone_set("Asia/Manila");
$dbname = "shogun2";
$host = "localhost";
$user = "root";
$pass = "";
$dbid=mysql_connect($host,$user,$pass);
mysql_select_db($dbname);

function accessLogs($user, $action, $desc) {
	$sql = "insert into access_logs (user_id, action_desc, action_result) 
			values ('$user', '$action', '$desc');
	";
	mysql_query($sql);
}
//echo $_SERVER["REQUEST_URI"];

//check if not yet check in
/*
if($_SERVER["REQUEST_URI"] != "/fds/ajax/shiftstart.php" && ($_SESSION["hotel"]["groupid"] == "5" || $_SESSION["hotel"]["groupid"] == "1"))
{
	$sql = "select shift from `shift-transactions`  order by datetime desc limit 0,1";
	$res = mysql_query($sql);

	
	list($usershift)=mysql_fetch_row($res);
	$num = mysql_num_rows($res);

	if(($usershift == 'end' || $usershift == '') || $num == 0)
	{
		header("location: notauthorize.php");
	}
}*/
	